package jdbc;

import jdbc.entity.User;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author： pang-yun
 * @date： 2021-12-02 19:48
 * 功能目的 ：用于
 */

public class JdbcTest {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("jdbc.xml");
        Service service = context.getBean("service", Service.class);
//        service.addUser(new User(2, "pang"));

        System.out.println(service.select(1));
    }
}
